package com.foredu.fiqs.persist.hibernate;

import java.util.List;

import com.foredu.fiqs.domain.SalaryItemDetailType;
import com.foredu.fiqs.persist.ISalaryItemDetailTypeDao;

public class HibernateSalaryItemDetailTypeDao extends HibernateAbstractDao<SalaryItemDetailType, Integer>
		implements ISalaryItemDetailTypeDao {

	private static final long serialVersionUID = 1L;

	public HibernateSalaryItemDetailTypeDao() {
		super(SalaryItemDetailType.class);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<SalaryItemDetailType> findDetailTypeOfSalaryItemType(int typeId) {
		return this.getHibernateTemplate().find("from SalaryItemDetailType s where s.type.id = ? ", typeId);
	}


}
